#include <iostream>
#include <pwd.h>

using namespace std;

int main(int argc, char **argv) {
    auto entry = getpwnam("tengyft");
    cout << "Name: " << entry->pw_name << endl
        << "Encrypted password: " << entry->pw_passwd << endl
        << "UserID: " << entry->pw_uid << endl
        << "GroupID: " << entry->pw_gid << endl
        << "Comment: " << entry->pw_gecos << endl
        << "Home dir:" << entry->pw_dir << endl
        << "Login shell: " << entry->pw_shell << endl;

    return 0;
}